package ex.com.jm.food.service.impl;


import java.util.List;

import ex.com.jm.food.dao.CompanyOrderItemDao;
import ex.com.jm.food.entity.Order;
import ex.com.jm.food.entity.OrderItem;
import ex.com.jm.food.service.CompanyOrderItemService;
/**
 * 订单详情管理业务接口实现
 * @author wangshenfeng
 *
 */
public class CompanyOrderItemServiceImpl implements CompanyOrderItemService {

	private CompanyOrderItemDao companyOrderItemDao;
	
	public CompanyOrderItemDao getCompanyOrderItemDao() {
		return companyOrderItemDao;
	}

	public void setCompanyOrderItemDao(CompanyOrderItemDao companyOrderItemDao) {
		this.companyOrderItemDao = companyOrderItemDao;
	}

	@Override
	public List<OrderItem> getOrderItems(int initPage, int pageRow,
			String orderId, String menuName, String order, String sort) {
		// TODO Auto-generated method stub
		return this.getCompanyOrderItemDao().getOrderItems(initPage, pageRow, orderId, menuName, order, sort);
	}

	@Override
	public int orderItemCount(String orderId, String menuName) {
		// TODO Auto-generated method stub
		return this.getCompanyOrderItemDao().orderItemCount(orderId, menuName);
	}

	@Override
	public void updateOrderItem(OrderItem orderItem) {
		// TODO Auto-generated method stub
		this.getCompanyOrderItemDao().updateOrderItem(orderItem);
	}

	@Override
	public Order getOrder(String orderId) {
		// TODO Auto-generated method stub
		return this.getCompanyOrderItemDao().getOrder(orderId);
	}

	@Override
	public void delOrderItem(String orderItemId) {
		// TODO Auto-generated method stub
		this.getCompanyOrderItemDao().delOrderItem(orderItemId);
	}

	@Override
	public OrderItem editOrderItem(String orderItemId) {
		// TODO Auto-generated method stub
		return this.getCompanyOrderItemDao().editOrderItem(orderItemId);
	}

}
